home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form save_form
- BackColor = &H00808080&
- Caption = "WAIS Save"
- ClientHeight = 3855
- ClientLeft = 2400
- ClientTop = 2115
- ClientWidth = 4710
- Height = 4260
- Left = 2340
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3855
- ScaleWidth = 4710
- Top = 1770
- Width = 4830
- Begin DirListBox dir_box
- BackColor = &H00FFFF00&
- Height = 2055
- Left = 1920
- TabIndex = 0
- Top = 1560
- Width = 1575
- End
- Begin DriveListBox drive_box
- BackColor = &H00FFFF00&
- Height = 315
- Left = 1920
- TabIndex = 1
- Top = 1080
- Width = 1575
- End
- Begin FileListBox file_box
- BackColor = &H00FFFF00&
- Height = 2565
- Left = 240
- TabIndex = 2
- Top = 1080
- Width = 1575
- End
- Begin CommandButton cancel
- Caption = "&Cancel"
- Height = 375
- Left = 3600
- TabIndex = 8
- Top = 720
- Width = 855
- End
- Begin CommandButton ok
- Caption = "&OK"
- Height = 375
- Left = 3600
- TabIndex = 7
- Top = 240
- Width = 855
- End
- Begin TextBox filename
- BackColor = &H00FFFF00&
- Height = 285
- Left = 1320
- TabIndex = 4
- Top = 240
- Width = 2175
- End
- Begin Label Label3
- BackColor = &H00808080&
- Caption = "Directories"
- Height = 255
- Left = 1920
- TabIndex = 6
- Top = 720
- Width = 1455
- End
- Begin Label Label2
- BackColor = &H00808080&
- Caption = "Files"
- Height = 255
- Left = 360
- TabIndex = 5
- Top = 720
- Width = 615
- End
- Begin Label Label1
- BackColor = &H00808080&
- Caption = "File Name:"
- Height = 255
- Left = 240
- TabIndex = 3
- Top = 240
- Width = 975
- End
- Sub cancel_Click ()
- save_form.Hide
- End Sub
- Sub dir_box_Change ()
- file_box.path = dir_box.path
-
- End Sub
- Sub drive_box_Change ()
- dir_box.path = drive_box.drive
- End Sub
- Sub file_box_DblClick ()
- filename.text = UCase$(file_box.filename)
- End Sub
- Sub Form_Load ()
- file_box.pattern = filename.text
- End Sub
- Sub ok_Click ()
- Dim rec As String * 1
- mousepointer = HOURGLASS
- savename$ = dir_box.path + "\" + filename.text
- Open savename$ For Binary As #2
- Close 1
- Open "wais.$$$" For Binary As #1
- doc_lines& = LOF(1)
- For x& = 1 To doc_lines&
- Get #1, x&, rec
- Put #2, x&, rec
- Next x&
- Close (2)
- Close (1)
- Open "wais.$$$" For Random As #1 Len = 80
- mouseptr = DEFAULT
- save_form.Hide
- End Sub
-